// This Class will declare the Laptop array and stores & displays the laptop details using For Each loop or
//Enhanced For Loop.

public class LaptopForEachLoop {

	public static void main(String[] args) {
		Laptops[] arrayLaptops = new Laptops[3];
Laptops laptop1 = new Laptops();
		
		laptop1.make = "Toshiba";
		laptop1.model = "Tz2300";
		laptop1.operatingSystem = "Windows8";
		
		Laptops laptop2 = new Laptops();
		
		laptop2.make = "Samsung";
		laptop2.model = "Sd 3344";
		laptop2.operatingSystem = "Windows7";
		
		Laptops laptop3 = new Laptops();
		
		laptop3.make = "Lenova";
		laptop3.model = "Le33667";
		laptop3.operatingSystem = "Windows XP";
		
		arrayLaptops[0] = laptop1;
		arrayLaptops[1] = laptop2;
		arrayLaptops[2] = laptop3;
		
		for(Laptops temp : arrayLaptops){
			
			System.out.println("Make of Laptop ="+ temp.make);
			System.out.println("Model of Laptop ="+ temp.model);
			System.out.println("Operating System of Laptop ="+ temp.operatingSystem);
			
		}
		
		
	}

}
